<template>
    <div class="description">
        <div class="description__content">店铺对账是指本店铺 与 各交易对象之间的资金(不含提现业务)往来，订单【已完成】后生成对应的对账数据。</div>
        <el-table :data="configData" border>
            <template #empty> <ElTableEmpty /> </template>
            <el-table-column prop="transactionType" label="交易类型" width="140" />
            <el-table-column prop="flowType" label="收入/支出" />
            <el-table-column prop="transactionObject" label="交易对象" />
            <el-table-column prop="fieldDescription" label="字段说明" width="450" />
        </el-table>
    </div>
</template>

<script lang="ts" setup>
const configData = [
    {
        transactionType: '商品交易',
        flowType: '收入',
        transactionObject: '用户',
        fieldDescription: '店铺的商品销售收入',
    },
    {
        transactionType: '平台优惠券',
        flowType: '收入',
        transactionObject: '平台',
        fieldDescription: '因平台发给会员的优惠券而获得的平台补贴',
    },
    {
        transactionType: '会员包邮',
        flowType: '收入',
        transactionObject: '平台',
        fieldDescription: '因会员享有该权益而获得的平台补贴',
    },
    {
        transactionType: '会员折扣',
        flowType: '收入',
        transactionObject: '平台',
        fieldDescription: '因会员享有该权益而获得的平台补贴',
    },
    {
        transactionType: '返利抵扣',
        flowType: '收入',
        transactionObject: '平台',
        fieldDescription: '因使用消费返利余额支付而获得的平台补贴',
    },
    {
        transactionType: '运费',
        flowType: '收入',
        transactionObject: '用户',
        fieldDescription: '用户支付的运费',
    },
    {
        transactionType: '平台服务费',
        flowType: '支出',
        transactionObject: '平台',
        fieldDescription: '根据商家实际收到（扣除分销佣金等支出后）的金额，按类目扣率或订单金额计算平台服务费，支撑平台运营',
    },
    {
        transactionType: '分销佣金',
        flowType: '支出',
        transactionObject: '分销商',
        fieldDescription: '分销成功支付给各层级分销员的佣金',
    },
    {
        transactionType: '采购运费',
        flowType: '支出',
        transactionObject: '供应商',
        fieldDescription: '采购订单对应的采购运费，仅统计线上支付的采购订单',
    },
    {
        transactionType: '采购交易',
        flowType: '支出',
        transactionObject: '供应商',
        fieldDescription: '因采购商品支付给供应商的采购金额，仅统计线上支付的采购订单',
    },
    {
        transactionType: '代销支出',
        flowType: '支出',
        transactionObject: '供应商',
        fieldDescription: '店铺为消费者购买代销商品而产生的支出，即店铺向供应商支付代销商品的供货金额',
    },
]
</script>

<style lang="scss" scoped>
@include b(description) {
    @include e(content) {
        margin-bottom: 15px;
    }
}
</style>
